import java.io.FileWriter;
import java.io.PrintWriter;
import java.io.IOException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*;
public class Movie {
    String title;
    String director;
    String stars;
    String description;
    int duration; // 分钟
    double rating; // 0-10

    Movie(String title, String director, String stars, String description, int duration, double rating) {
        this.title = title;
        this.director = director;
        this.stars = stars;
        this.description = description;
        this.duration = duration;
        this.rating = rating;
    }

    @Override
    public String toString() {
        return String.format("片名：%s，导演：%s，主演：%s，时长：%d，评分：%.1f",
                title, director, stars, duration, rating);
    }
}
